<template>
  <div class="app">
    <h1>当前计数为：{{ count }}</h1>
    <h2>双倍快乐: {{ double }}</h2>
    <button @click="increment">+</button>
  </div>
</template>
<script setup>
import useCounter from './hooks/useCounter'
const { count, double, increment } = useCounter()
</script>
<style
  lang="scss"
  scoped
></style>
